package com.jumi.microservice.constant.comment;

import com.jumi.microservice.common.base.dto.AbstractEnum;

public enum SensitiveKeywordEnum implements AbstractEnum  {
    /**
     * 测试的提示
     */
    NO_LOGIN(500, "请先登录"),
    COMMENT_STATUS_ID_ERROR(500, "敏感词id不能为空"),
    COMMENT_QUERY_ID_ERROR(200, "敏感词数据为空"),
    KEYWORD_INSERT_REPEAT_ERROR(500, "敏感词已添加，不能重复添加"),
    KEYWORD_DEL_ID_ERROR(500, "敏感词删除失败");
    private Integer code;
    private String message;

    SensitiveKeywordEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
